package common.utils;

public class RedisConstants {
    //TODO 设置随机TTL防止缓存雪崩

    
    public static final String LOGIN_CODE_KEY = "login:code:";// 登录验证码
    public static final Long LOGIN_CODE_TTL = 2L;// 登录验证码过期时间
    public static final String LOGIN_USER_KEY = "login:token:";// 登录用户
    public static final Long LOGIN_USER_TTL = 120L;// 登录用户过期时间
    public static final String ORDER_STATUS_CHECK_KEY = "order:status:check:";// 订单状态检查
    public static final Long ORDER_STATUS_CHECK_TTL = 15L;// 订单状态检查过期时间
    public static final String GOODS_LIST_KEY = "goods:list:";// 商品列表
    public static final Long GOODS_LIST_TTL = 15L;// 商品列表过期时间
    public static final String GOODS_DETAIL_KEY = "goods:detail:";// 商品详情
    public static final Long GOODS_DETAIL_TTL = 15L;// 商品详情过期时间
    public static final String SHOP_DETAIL_KEY = "shop:detail:";// 商铺详情
    public static final Long SHOP_DETAIL_TTL = 15L;// 商铺详情过期时间
    public static final String SHOP_LIST_KEY = "shop:list:";// 商铺列表
    public static final Long SHOP_LIST_TTL = 15L;// 商铺列表过期时间
    public static final String LOCK_SHOP_KEY = "lock:shop:";// 商铺缓存互斥锁
    public static final Long LOCK_SHOP_TTL = 10L;// 商铺缓存互斥锁过期时间
}
